package com.hhj.sell.exception;

import com.hhj.sell.enums.ResultEnums;

public class SellException extends RuntimeException {
    private Integer code;
    public SellException(ResultEnums resultEnums) {
        super(resultEnums.getMsg());
        this.code = resultEnums.getCode();
    }

    public SellException(Integer code,String msg) {
         super(msg);
        this.code = code;
    }
}
